package com.zxl.grocerymicroservicewechatmeal.repository;

import com.zxl.grocerymicroservicewechatmeal.dataobject.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author: zxl
 * @Description:
 * @Date: Created in 7:20 2017/11/16
 * @Modified By:
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {

    /**
     * 根据订单id查询订单详情信息
     * @param orderId
     * @return
     */
    List<OrderDetail> findByOrderId(String orderId);
}
